package com.sxt.utils;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

public class GameUtils {
    public static Image upImg = Toolkit.getDefaultToolkit().getImage("img/up.png");
    public static Image downImg = Toolkit.getDefaultToolkit().getImage("img/down.png");
    public static Image leftImg = Toolkit.getDefaultToolkit().getImage("img/left.png");
    public static Image rightImg = Toolkit.getDefaultToolkit().getImage("img/right.png");
    public static Image bodyImg = Toolkit.getDefaultToolkit().getImage("img/body.png");
    public static Image foodImg = Toolkit.getDefaultToolkit().getImage("img/food.png");
    public static int level = 1;

    public GameUtils() {
    }

    public static void drawWord(Graphics g, String str, Color color, int size, int x, int y) {
        g.setColor(color);
        g.setFont(new Font("仿宋", 1, size));
        g.drawString(str, x, y);
    }
}
